﻿@model List<WebApplication4._1.Models.Task>

@{
    ViewBag.Title = "View";
}

<h2>View</h2>
<table class="table table-striped table-hover">

    <thead>
        <tr>
            <th>编号</th>
            <th>内容</th>
            <th>任务优先级</th>
            <th>类型</th>
            <th>开始时间</th>
            <th>结束时间</th>
        </tr>
    </thead>

    <tbody>
        @foreach (var item in Model)
        {
            <tr>

                <td>@item.TaskID</td>
                <td>@item.Content</td>
                <td>@item.TaskPriority</td>
                <td>@item.TaskState</td>
                <td>@item.AddTime</td>
                <td>@item.FinishedTime</td>
            </tr>

        }
    </tbody>
</table>
